package com.easylinkin.linkappapi.lobar.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.easylinkin.linkappapi.common.model.RequestModel;
import com.easylinkin.linkappapi.lobar.dto.UserBlacklistDTO;
import com.easylinkin.linkappapi.lobar.entity.UserBlacklist;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.Map;

/**
 * <p>
 * 闸机表 服务类
 * </p>
 *
 * @author TongJie
 * @since 2022-04-13
 */
public interface UserBlacklistService extends IService<UserBlacklist> {

  IPage<UserBlacklistDTO> queryListByPage(RequestModel<UserBlacklistDTO> requestModel);

  /**
   * 增加
   * @param userBlacklist
   * @return
   */
  Map<String, Object> insert(UserBlacklist userBlacklist);

  /**
   * 根据id编辑
   * @param userBlacklist
   */
  void updateOne(UserBlacklist userBlacklist);

  /**
   * @Description: 移出黑名单
   * @author kan yuanfeng
   * @date 2020/11/04 11:42
   * @return
   */
  Map<String, Object> delOne(UserBlacklist userBlacklist, int i);

  /**
   * @Description: 删除黑名单列表(企业级操作)
   * @author kan yuanfeng
   * @date 2020/11/04 11:42
   */
  void delBatch(UserBlacklist userBlacklist);

  /**
   * 审批黑名单
   * @param userBlacklist
   * @return
   */
  Map<String, Object> approve(UserBlacklist userBlacklist);
}
